$(function () {

    var layer = layui.layer
    $('#form_login').submit(function (e) {
        e.preventDefault()
        $.ajax({
            method: 'GET',
            url: "http://192.168.23.30:3000/user",
            data: $(this).serialize(),
            success: function (res) {


                localStorage.setItem('token', res.token)
                location.href = '/index.html'
            }
        });
    })
})